<template>
  <div>
  <Header></Header>
  <Content></Content>
  <Comment :data="data"></Comment>
  </div>
</template>

<script>
import Header from './components/Header.vue'
import Comment from './components/Comment'
import Content from './components/Content'
export default {
  name: 'App',
  components: {
    Comment,
    Content,
    Header
  },
  data () {
    return {
      data: []
    }
  },
  mounted () {
    console.log(this.$store)
    this.data = this.$store.state.data
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
